package com.example.rabbit.controller;


import com.example.rabbit.service.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:MuJiuTian
 * @Description:
 * @Date: Created in 下午10:23 2019/8/19
 */
@RestController
public class RabbitController {

    @Autowired
    private Sender sender;

    @RequestMapping(value = "/hello")
    public void send(){
            sender.send("hello_queue","hello  ,我是一个生产者");
    }


}
